package xcmg.device.dao.mapper.safetyStock;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import xcmg.device.dao.entity.safetyStock.ComSafetyStockInfo;

/**
 * @author wangyong
 */
@Mapper
public interface ComSafetyStockInfoMapper {

  /**
   * 获取需要计算安全库存的公司
   *
   * @return
   */
  List<ComSafetyStockInfo> listActiveComs();

  /**
   * 更新
   *
   * @param comSafetyStockInfo
   * @return
   */
  Integer update(ComSafetyStockInfo comSafetyStockInfo);

  /**
   * 新增
   *
   * @param comSafetyStockInfo
   * @return
   */
  Integer insert(ComSafetyStockInfo comSafetyStockInfo);

  /**
   *
   * @param orgId
   * @return
   */
  ComSafetyStockInfo getByOrgId(String orgId);

}
